cmake_minimum_required (VERSION 3.10.2)
project (set_test)

set (normal_var_in_sub_dir sub_hello)
set (normal_var_in_sub_dir hello PARENT_SCOPE)

message (">>>>>> in sub directory, value = ${normal_var_in_sub_dir}")

message (">>>>>> in sub, value = ${test1}")

set (test2 world CACHE STRING "just for deliver")
set (test5 hahah CACHE STRING "hahah")

function (subfn arg1)
    set (test3 hello CACHE INTERNAL "just for deliver")
    set (test4 hahah)
endfunction (subfn)
subfn (nomean)
message (">>>>>> in sub, value3 = ${test3}")
message (">>>>>> in sub, value4 = ${test4}")
